const Mock = require("mockjs");
const {data} = Mock.mock({
    "data|10": [ //生成10条数据 数组
        {
            "id|+1": 1,//生成商品id，自增1
            "shopMsg": "@ctitle(10)", //生成商品信息，长度为10个汉字
             "processNo|+1":"243456779",
             "processQuantity":[3,4,5,8],
             "technologicalProcess":"打孔组装",
            "createRole|+1":["张三","张四"],
            'remark':"备注",
        }
    ]
})
Mock.mock(/goods\/goodAll/, 'post', () => { //三个参数。第一个路径，第二个请求方式post/get，第三个回调，返回值
    return data
})
